package com.wholesale.beans;

import org.json.JSONException;
import org.json.JSONObject;

public class BoughtGoods {
	private int goodsId ; 
	private int goodsNumber;
	public int getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}
	public int getGoodsNumber() {
		return goodsNumber;
	}
	public void setGoodsNumber(int goodsNumber) {
		this.goodsNumber = goodsNumber;
	}
	
	public JSONObject getJSONObject(){
		JSONObject object = new JSONObject();
		try {
			object.put("goodsId", goodsId);
		} catch (JSONException e) {
		}
		try {
			object.put("goodsNumber", goodsNumber);
		} catch (JSONException e) {
		}
		return object ;
	}
}
